package com.sky.service;/**
 * @ProjectName: sky-take-out
 * @Package: com.sky.service
 * @ClassName: ShoppingCartService
 * @Author: 王加其
 * @Date: 2023/4/23 20:59
 * @Version: 1.0
 */

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *@author:王加其
 *@date:2023/4/23 20:59
 *@modified By:
 **/
@Service
public interface ShoppingCartService {
    /**
     * 添加购物车
     * @param shoppingCartDTO
     */
    void addShoppingCart(ShoppingCartDTO shoppingCartDTO);

    /**
     * 查看购物车
     * @return
     */
    List<ShoppingCart> showShoppingCart();

    /**
     * 清空购物车商品
     */
    void cleanShoppingCart();

    /**
     * 删除购物车中一个商品
     * @param shoppingCartDTO
     */
    void subShoppingCart(ShoppingCartDTO shoppingCartDTO);
}
